<?php
/**
 * Tags
 * 
 * @copyright 	Copyright (c) 2011 thinkapk.com All rights reserved.
 * @package 	ThinkAPK_Action
 * @link 		http://www.thinkapk.com/
 * @author 		richie <richbossman@163.com>
 * @version 	$Id: TagsAciton.class.php 7482 2011-05-19 10:12:51Z richie $
 * 
 */
class TagsAction extends ThinkAPK_Action_Web {
	
	function _before_index(){
		$this->setTitle('Android安卓热门搜索关键词TOP500');
		$this->setPosition(0, 'Android热词TOP500');
		$this->assign('tagslist', $this->getHotTags(500));
	}
	
	function getHotTags($limit=100){
		return M('Tags')->where('total>0')->order('click DESC')->limit($limit)->field('id,tags,total')->findAll();
	}
}
?>